//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//

package com.qst.crop.entity;

import java.math.BigDecimal;
import java.util.Date;

public class SellPurchase {
    private Integer sellPurchaseId;
    private Integer purchaseId;
    private Integer orderId;
    private String ownName;
    private Integer purchaseType;
    private BigDecimal uninPricee;
    private BigDecimal sumPrice;
    private String address;
    private String phone;
    private Integer purchaseStatus;
    private Date createTime;
    private Date updateTime;

    public SellPurchase() {
    }

    public Integer getSellPurchaseId() {
        return this.sellPurchaseId;
    }

    public Integer getPurchaseId() {
        return this.purchaseId;
    }

    public Integer getOrderId() {
        return this.orderId;
    }

    public String getOwnName() {
        return this.ownName;
    }

    public Integer getPurchaseType() {
        return this.purchaseType;
    }

    public BigDecimal getUninPricee() {
        return this.uninPricee;
    }

    public BigDecimal getSumPrice() {
        return this.sumPrice;
    }

    public String getAddress() {
        return this.address;
    }

    public String getPhone() {
        return this.phone;
    }

    public Integer getPurchaseStatus() {
        return this.purchaseStatus;
    }

    public Date getCreateTime() {
        return this.createTime;
    }

    public Date getUpdateTime() {
        return this.updateTime;
    }

    public void setSellPurchaseId(final Integer sellPurchaseId) {
        this.sellPurchaseId = sellPurchaseId;
    }

    public void setPurchaseId(final Integer purchaseId) {
        this.purchaseId = purchaseId;
    }

    public void setOrderId(final Integer orderId) {
        this.orderId = orderId;
    }

    public void setOwnName(final String ownName) {
        this.ownName = ownName;
    }

    public void setPurchaseType(final Integer purchaseType) {
        this.purchaseType = purchaseType;
    }

    public void setUninPricee(final BigDecimal uninPricee) {
        this.uninPricee = uninPricee;
    }

    public void setSumPrice(final BigDecimal sumPrice) {
        this.sumPrice = sumPrice;
    }

    public void setAddress(final String address) {
        this.address = address;
    }

    public void setPhone(final String phone) {
        this.phone = phone;
    }

    public void setPurchaseStatus(final Integer purchaseStatus) {
        this.purchaseStatus = purchaseStatus;
    }

    public void setCreateTime(final Date createTime) {
        this.createTime = createTime;
    }

    public void setUpdateTime(final Date updateTime) {
        this.updateTime = updateTime;
    }

    public boolean equals(final Object o) {
        if (o == this) {
            return true;
        } else if (!(o instanceof SellPurchase)) {
            return false;
        } else {
            SellPurchase other = (SellPurchase)o;
            if (!other.canEqual(this)) {
                return false;
            } else {
                label155: {
                    Object this$sellPurchaseId = this.getSellPurchaseId();
                    Object other$sellPurchaseId = other.getSellPurchaseId();
                    if (this$sellPurchaseId == null) {
                        if (other$sellPurchaseId == null) {
                            break label155;
                        }
                    } else if (this$sellPurchaseId.equals(other$sellPurchaseId)) {
                        break label155;
                    }

                    return false;
                }

                Object this$purchaseId = this.getPurchaseId();
                Object other$purchaseId = other.getPurchaseId();
                if (this$purchaseId == null) {
                    if (other$purchaseId != null) {
                        return false;
                    }
                } else if (!this$purchaseId.equals(other$purchaseId)) {
                    return false;
                }

                Object this$orderId = this.getOrderId();
                Object other$orderId = other.getOrderId();
                if (this$orderId == null) {
                    if (other$orderId != null) {
                        return false;
                    }
                } else if (!this$orderId.equals(other$orderId)) {
                    return false;
                }

                label134: {
                    Object this$purchaseType = this.getPurchaseType();
                    Object other$purchaseType = other.getPurchaseType();
                    if (this$purchaseType == null) {
                        if (other$purchaseType == null) {
                            break label134;
                        }
                    } else if (this$purchaseType.equals(other$purchaseType)) {
                        break label134;
                    }

                    return false;
                }

                label127: {
                    Object this$purchaseStatus = this.getPurchaseStatus();
                    Object other$purchaseStatus = other.getPurchaseStatus();
                    if (this$purchaseStatus == null) {
                        if (other$purchaseStatus == null) {
                            break label127;
                        }
                    } else if (this$purchaseStatus.equals(other$purchaseStatus)) {
                        break label127;
                    }

                    return false;
                }

                label120: {
                    Object this$ownName = this.getOwnName();
                    Object other$ownName = other.getOwnName();
                    if (this$ownName == null) {
                        if (other$ownName == null) {
                            break label120;
                        }
                    } else if (this$ownName.equals(other$ownName)) {
                        break label120;
                    }

                    return false;
                }

                Object this$uninPricee = this.getUninPricee();
                Object other$uninPricee = other.getUninPricee();
                if (this$uninPricee == null) {
                    if (other$uninPricee != null) {
                        return false;
                    }
                } else if (!this$uninPricee.equals(other$uninPricee)) {
                    return false;
                }

                label106: {
                    Object this$sumPrice = this.getSumPrice();
                    Object other$sumPrice = other.getSumPrice();
                    if (this$sumPrice == null) {
                        if (other$sumPrice == null) {
                            break label106;
                        }
                    } else if (this$sumPrice.equals(other$sumPrice)) {
                        break label106;
                    }

                    return false;
                }

                Object this$address = this.getAddress();
                Object other$address = other.getAddress();
                if (this$address == null) {
                    if (other$address != null) {
                        return false;
                    }
                } else if (!this$address.equals(other$address)) {
                    return false;
                }

                label92: {
                    Object this$phone = this.getPhone();
                    Object other$phone = other.getPhone();
                    if (this$phone == null) {
                        if (other$phone == null) {
                            break label92;
                        }
                    } else if (this$phone.equals(other$phone)) {
                        break label92;
                    }

                    return false;
                }

                Object this$createTime = this.getCreateTime();
                Object other$createTime = other.getCreateTime();
                if (this$createTime == null) {
                    if (other$createTime != null) {
                        return false;
                    }
                } else if (!this$createTime.equals(other$createTime)) {
                    return false;
                }

                Object this$updateTime = this.getUpdateTime();
                Object other$updateTime = other.getUpdateTime();
                if (this$updateTime == null) {
                    if (other$updateTime != null) {
                        return false;
                    }
                } else if (!this$updateTime.equals(other$updateTime)) {
                    return false;
                }

                return true;
            }
        }
    }

    protected boolean canEqual(final Object other) {
        return other instanceof SellPurchase;
    }

    public int hashCode() {
        boolean PRIME = true;
        int result = 1;
        Object $sellPurchaseId = this.getSellPurchaseId();
        result = result * 59 + ($sellPurchaseId == null ? 43 : $sellPurchaseId.hashCode());
        Object $purchaseId = this.getPurchaseId();
        result = result * 59 + ($purchaseId == null ? 43 : $purchaseId.hashCode());
        Object $orderId = this.getOrderId();
        result = result * 59 + ($orderId == null ? 43 : $orderId.hashCode());
        Object $purchaseType = this.getPurchaseType();
        result = result * 59 + ($purchaseType == null ? 43 : $purchaseType.hashCode());
        Object $purchaseStatus = this.getPurchaseStatus();
        result = result * 59 + ($purchaseStatus == null ? 43 : $purchaseStatus.hashCode());
        Object $ownName = this.getOwnName();
        result = result * 59 + ($ownName == null ? 43 : $ownName.hashCode());
        Object $uninPricee = this.getUninPricee();
        result = result * 59 + ($uninPricee == null ? 43 : $uninPricee.hashCode());
        Object $sumPrice = this.getSumPrice();
        result = result * 59 + ($sumPrice == null ? 43 : $sumPrice.hashCode());
        Object $address = this.getAddress();
        result = result * 59 + ($address == null ? 43 : $address.hashCode());
        Object $phone = this.getPhone();
        result = result * 59 + ($phone == null ? 43 : $phone.hashCode());
        Object $createTime = this.getCreateTime();
        result = result * 59 + ($createTime == null ? 43 : $createTime.hashCode());
        Object $updateTime = this.getUpdateTime();
        result = result * 59 + ($updateTime == null ? 43 : $updateTime.hashCode());
        return result;
    }

    public String toString() {
        return "SellPurchase(sellPurchaseId=" + this.getSellPurchaseId() + ", purchaseId=" + this.getPurchaseId() + ", orderId=" + this.getOrderId() + ", ownName=" + this.getOwnName() + ", purchaseType=" + this.getPurchaseType() + ", uninPricee=" + this.getUninPricee() + ", sumPrice=" + this.getSumPrice() + ", address=" + this.getAddress() + ", phone=" + this.getPhone() + ", purchaseStatus=" + this.getPurchaseStatus() + ", createTime=" + this.getCreateTime() + ", updateTime=" + this.getUpdateTime() + ")";
    }
}
